package com.tbh.annotation.event.custom;

import org.springframework.context.ApplicationListener;


/**
 * 将事件添加到监听
 */
public class CustomEventHandler implements ApplicationListener<CustomEvent> {
    @Override
    public void onApplicationEvent(CustomEvent event) {
        System.out.println(event.toString());
    }
}
